package com.batchOperation.Template;


import com.batchOperation.businessfield.model.BusinessEntityField;
import com.batchOperation.Template.model.BatchOperationTemplate;

import java.util.List;
import java.util.Map;

/**
 * @Package: com.geeksss.batchOperation.Template
 * @ClassName: TemplateService
 * @Author: wulongkai
 * @CreateTime: 2024/7/18 17:35
 * @Description:
 */
public interface TemplateService {

    /**
     * 获取模版信息
     * @param templateId
     * @return
     */
    BatchOperationTemplate getTemplateInfo(Long templateId);

    /**
     * 获取配置的模版字段信息
     * @param mainObj
     * @return
     */
    Map<String, List<BusinessEntityField>> getBatchOperationTemplateList(String mainObj);

    /**
     * 创建 or 更新模版
     * @param batchOperationTemplate
     */
    void createOrModifyTemplate(BatchOperationTemplate batchOperationTemplate);
}
